﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Com.User.BLL;
using Com.User;
using Com.PO.User;
 

namespace Com.CMS263.Web.MVC.Controllers
{
    public class MainPageController : AbstractController
    {
        //
        // GET: /MainPage/

        public ActionResult Index()
        {
            return View();
        }
        
        public ActionResult RegistAction() {
            UserBLL userBll = new UserBLL();
            string name = base.GetPageParam("regist_userName").ToString();
            string passwd = this.Request.Form["regist_passwd"];
            UserInfo user = new UserInfo();
            user.Name = name;
            user.Passwd = passwd;
            userBll.AddUser(user);
            return null;
        }
    }
}
